package com.small.nacos.naming.consistency;

import java.io.Serializable;

/**
 * @Author zhoujin
 * @Date 2022/10/29 14:12
 */
public class Datum<T> implements Serializable {

    private static final long serialVersionUID = -2525482315889753720L;

    public String key;

    public T value;

    public static <T> Datum createDatum(final String key, final T value) {
        Datum datum = new Datum();
        datum.key = key;
        datum.value = value;
        return datum;
    }
}
